import request from '@/utils/request'


const api = {
    basepath: '/gwfj/gwfj'
}

export function saveAttachmentApi(parameter) {
    return request({
        url: api.basepath,
        method: 'post',
        data: parameter,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

export function saveGwfj(parameter) {
    return request({
        url: api.basepath,
        method: 'post',
        data: parameter,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

export function delAttachment(parameter) {
    return request({
        url: api.basepath,
        method: 'Delete',
        params: parameter
    })
}

export function getList(parameter) {
    return request({
        url: api.basepath + '/list',
        method: 'get',
        params: parameter
    })
}

export function getInfo(unid) {
    return request({
        url: api.basepath + '/' + unid,
        method: 'get'
    })
}